<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Investigating optimal threads for web task</title>
</head>
<body>
<font size="5" face="verdana" color="blue">Welcome to our site for our assignment project!</font>

<p></p>

<p>The aim of this project is to find the optimal number of threads for web connection tasks, 
for this purpose we define our task as making a connection to a website and/or reading the content of that site.
 This kind of task belongs to the category of "interactive task" which interacts with web server. 
 We have done the experiment such that we make connection to more than 900 with a laptop websites 
 using different number of threads and we have observed that as the number of threads increased but 
 the execution time was decreasing i.e. having 900 threads as the number of tasks won't help the total 
 execution time</p>

<p>Finding the optimum threads is not the exact science. 
This depends on the nature of the tasks, the available resource and computing environment 
and the web task further depends on the network and the state of server.  
By adapting the formula in Java concurrency in practice (Brian Goetz, Book chapter 8) 
we have developed a java programs that calculate the possible optimal number of threads based on 
CPU utilization, applying the calculated result back to our experiment  we observed 
that the CPU utilization is achieved very high.</p>
<p></p>

<font  size="2" face="verdana" color="black"> The source code can be found at http://code.google.com/p/se751/</font>
</body>
</html>
